package com.xiao.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import javax.sql.DataSource;

/**
 * @Description 服务消费者入口类
 * @Auther: 笑笑是一个码农
 * @Date: 16:38 2020/12/23
 */
@EnableCircuitBreaker // 该注解经过测试其实可以不加，默认断路器开启
@EnableFeignClients(basePackages = "com.xiao")
@SpringBootApplication(scanBasePackages = "com.xiao")
@EnableDiscoveryClient
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
